package cn.bd13.swagger.service.imp;



import cn.bd13.swagger.dao.UserDao;
import cn.bd13.swagger.entity.User;
import cn.bd13.swagger.service.Service;

import javax.annotation.Resource;
import java.util.List;


/**
 * ClassName：Serviceimp
 * Package:cn.kgc.bd13.bootlogin.service.imp
 * Description:
 *
 * @Date:2020/4/29 15:06
 * @Author:zhangqiang@kgc.cn
 */
@org.springframework.stereotype.Service
public class Serviceimp implements Service {
    @Resource
    private UserDao userDao;


    @Override
    public User login(String name) throws Exception {
        return null;
    }

    @Override
    public User getUserName(String name) throws Exception {
        return userDao.queryUserName(name);
    }

    @Override
    public int modifyUserName(String id, String name) throws Exception {
        return userDao.modifyUserName(id,name);
    }

    @Override
    public List<User> getAllUser() throws Exception {
        return userDao.getAllUser();
    }
}
